<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:83:"E:\phpset\phpSet\www\new shop\shop\public/../application/index\view\data\index.html";i:1541754956;}*/ ?>
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    

    <title>H+ 后台主题UI框架 - 数据表格</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">

    <link rel="shortcut icon" href="/new shop/shop/public/static/favicon.ico"> <link href="/new shop/shop/public/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="/new shop/shop/public/static/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">

    <link href="/new shop/shop/public/static/css/animate.min.css" rel="stylesheet">
    <link href="/new shop/shop/public/static/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>数据统计 <small><?php echo $table; ?></small></h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form action="#" method="post">
                        <input type="hidden" name="down" value="ok">
                        <button class="btn btn-outline btn-info  dim" type="submit"><i class="fa fa-paste"></i>
                        Excel下载</button>
                        </form>
                        <table class="table table-striped table-bordered table-hover dataTables-example">
                            <thead>
                                <tr>
                                    <th>序号</th>
                                    <?php if(is_array($tab) || $tab instanceof \think\Collection || $tab instanceof \think\Paginator): $i = 0; $__LIST__ = $tab;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                    <th><?php echo $v; ?></th>
                                    <?php endforeach; endif; else: echo "" ;endif; ?>
                                </tr>
                            </thead>
                            <tbody>
                            <?php if(is_array($res) || $res instanceof \think\Collection || $res instanceof \think\Paginator): $k = 0; $__LIST__ = $res;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?>
                                <tr class="gradeX">
                                    <td><?php echo $k; ?></td>
                                    <?php if(is_array($name) || $name instanceof \think\Collection || $name instanceof \think\Paginator): $i = 0; $__LIST__ = $name;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$f): $mod = ($i % 2 );++$i;if($f == 'id'): ?>
                                        <td class="center">
                                            <a href="<?php echo $url; ?>?id=<?php echo $v['id']; ?>">
                                                <button class="btn btn-info " type="button"><i class="fa fa-paste"></i> 详情</button>
                                            </a>
                                        </td>
                                    <?php else: ?>
                                        <td><?php echo $v[$f]; ?></td>
                                    <?php endif; endforeach; endif; else: echo "" ;endif; ?>
                                </tr>
                            <?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                            <tfoot>
                            <tr>
                                <th>序号</th>
                                <?php if(is_array($tab) || $tab instanceof \think\Collection || $tab instanceof \think\Paginator): $i = 0; $__LIST__ = $tab;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                                <th><?php echo $v; ?></th>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </tr>
                            </tfoot>
                        </table>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="/new shop/shop/public/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="/new shop/shop/public/static/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/new shop/shop/public/static/js/plugins/jeditable/jquery.jeditable.js"></script>
    <script src="/new shop/shop/public/static/js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="/new shop/shop/public/static/js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <script src="/new shop/shop/public/static/js/content.min.js?v=1.0.0"></script>
    <script>
        $(document).ready(function(){$(".dataTables-example").dataTable();var oTable=$("#editable").dataTable();oTable.$("td").editable("../example_ajax.php",{"callback":function(sValue,y){var aPos=oTable.fnGetPosition(this);oTable.fnUpdate(sValue,aPos[0],aPos[1])},"submitdata":function(value,settings){return{"row_id":this.parentNode.getAttribute("id"),"column":oTable.fnGetPosition(this)[2]}},"width":"90%","height":"100%"})});function fnClickAddRow(){$("#editable").dataTable().fnAddData(["Custom row","New row","New row","New row","New row"])};
    </script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>

</body>

</html>